<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Spec::Runner::Formatter::Story::PlainTextFormatter</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Spec::Runner::Formatter::Story::PlainTextFormatter</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../../files/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter_rb.html">
                vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                BaseTextFormatter
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000442">collected_steps</a>&nbsp;&nbsp;
      <a href="#M000428">new</a>&nbsp;&nbsp;
      <a href="#M000437">run_ended</a>&nbsp;&nbsp;
      <a href="#M000429">run_started</a>&nbsp;&nbsp;
      <a href="#M000436">scenario_ended</a>&nbsp;&nbsp;
      <a href="#M000434">scenario_failed</a>&nbsp;&nbsp;
      <a href="#M000435">scenario_pending</a>&nbsp;&nbsp;
      <a href="#M000432">scenario_started</a>&nbsp;&nbsp;
      <a href="#M000433">scenario_succeeded</a>&nbsp;&nbsp;
      <a href="#M000441">step_failed</a>&nbsp;&nbsp;
      <a href="#M000440">step_pending</a>&nbsp;&nbsp;
      <a href="#M000439">step_succeeded</a>&nbsp;&nbsp;
      <a href="#M000438">step_upcoming</a>&nbsp;&nbsp;
      <a href="#M000431">story_ended</a>&nbsp;&nbsp;
      <a href="#M000430">story_started</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000428" class="method-detail">
        <a name="M000428"></a>

        <div class="method-heading">
          <a href="#M000428" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(options, where)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000428-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000428-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 8</span>
 8:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">where</span>)
 9:             <span class="ruby-keyword kw">super</span>
10:             <span class="ruby-ivar">@successful_scenario_count</span> = <span class="ruby-value">0</span>
11:             <span class="ruby-ivar">@pending_scenario_count</span> = <span class="ruby-value">0</span>
12:             
13:             <span class="ruby-ivar">@pre_story_pending_count</span> = <span class="ruby-value">0</span>
14:             <span class="ruby-ivar">@pre_story_successful_count</span> = <span class="ruby-value">0</span>
15:             
16:             <span class="ruby-ivar">@failed_scenarios</span> = []
17:             <span class="ruby-ivar">@pending_steps</span> = []
18:             <span class="ruby-ivar">@previous_type</span> = <span class="ruby-keyword kw">nil</span> 
19:             
20:             <span class="ruby-ivar">@scenario_body_text</span> = <span class="ruby-value str">&quot;&quot;</span>
21:             <span class="ruby-ivar">@story_body_text</span> = <span class="ruby-value str">&quot;&quot;</span>
22:             
23:             <span class="ruby-ivar">@scenario_head_text</span> = <span class="ruby-value str">&quot;&quot;</span>
24:             <span class="ruby-ivar">@story_head_text</span> = <span class="ruby-value str">&quot;&quot;</span>
25:                   
26:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">false</span>
27:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">false</span>
28:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000442" class="method-detail">
        <a name="M000442"></a>

        <div class="method-heading">
          <a href="#M000442" class="method-signature">
          <span class="method-name">collected_steps</span><span class="method-args">(steps)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000442-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000442-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 159</span>
159:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collected_steps</span>(<span class="ruby-identifier">steps</span>)
160:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000437" class="method-detail">
        <a name="M000437"></a>

        <div class="method-heading">
          <a href="#M000437" class="method-signature">
          <span class="method-name">run_ended</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000437-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000437-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 106</span>
106:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_ended</span>
107:             <span class="ruby-identifier">summary_text</span> = <span class="ruby-node">&quot;#@count scenarios: #@successful_scenario_count succeeded, #{@failed_scenarios.size} failed, #@pending_scenario_count pending&quot;</span>
108:             <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@failed_scenarios</span>.<span class="ruby-identifier">empty?</span>
109:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">red</span>(<span class="ruby-identifier">summary_text</span>)
110:             <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@pending_steps</span>.<span class="ruby-identifier">empty?</span>
111:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">yellow</span>(<span class="ruby-identifier">summary_text</span>)
112:             <span class="ruby-keyword kw">else</span>
113:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">green</span>(<span class="ruby-identifier">summary_text</span>)
114:             <span class="ruby-keyword kw">end</span>
115:             <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@pending_steps</span>.<span class="ruby-identifier">empty?</span>
116:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;\nPending Steps:&quot;</span>
117:               <span class="ruby-ivar">@pending_steps</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pending</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
118:                 <span class="ruby-identifier">story_name</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">msg</span> = <span class="ruby-identifier">pending</span>
119:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{i+1}) #{story_name} (#{scenario_name}): #{msg}&quot;</span>
120:               <span class="ruby-keyword kw">end</span>
121:             <span class="ruby-keyword kw">end</span>
122:             <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@failed_scenarios</span>.<span class="ruby-identifier">empty?</span>
123:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-value str">&quot;\nFAILURES:&quot;</span>
124:               <span class="ruby-ivar">@failed_scenarios</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">failure</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
125:                 <span class="ruby-identifier">title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">err</span> = <span class="ruby-identifier">failure</span>
126:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-node">&quot;\n    #{i+1}) &quot;</span>
127:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">red</span>(<span class="ruby-node">&quot;#{title} (#{scenario_name}) FAILED&quot;</span>)
128:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">red</span>(<span class="ruby-node">&quot;\n    #{err.class}: #{err.message}&quot;</span>)
129:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-node">&quot;\n    #{err.backtrace.join(&quot;\n&quot;)}\n&quot;</span>
130:               <span class="ruby-keyword kw">end</span>
131:             <span class="ruby-keyword kw">end</span>            
132:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000429" class="method-detail">
        <a name="M000429"></a>

        <div class="method-heading">
          <a href="#M000429" class="method-signature">
          <span class="method-name">run_started</span><span class="method-args">(count)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000429-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000429-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 30</span>
30:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_started</span>(<span class="ruby-identifier">count</span>)
31:             <span class="ruby-ivar">@count</span> = <span class="ruby-identifier">count</span>
32:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Running #@count scenarios\n\n&quot;</span>
33:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000436" class="method-detail">
        <a name="M000436"></a>

        <div class="method-heading">
          <a href="#M000436" class="method-signature">
          <span class="method-name">scenario_ended</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000436-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000436-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 95</span>
 95:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_ended</span>
 96:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@scenario_failed</span>
 97:               <span class="ruby-ivar">@story_body_text</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">red</span>(<span class="ruby-ivar">@scenario_head_text</span>)
 98:             <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@scenario_pending</span>
 99:               <span class="ruby-ivar">@story_body_text</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">yellow</span>(<span class="ruby-ivar">@scenario_head_text</span>)
100:             <span class="ruby-keyword kw">else</span>
101:               <span class="ruby-ivar">@story_body_text</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">green</span>(<span class="ruby-ivar">@scenario_head_text</span>)
102:             <span class="ruby-keyword kw">end</span>
103:             <span class="ruby-ivar">@story_body_text</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@scenario_body_text</span>
104:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000434" class="method-detail">
        <a name="M000434"></a>

        <div class="method-heading">
          <a href="#M000434" class="method-signature">
          <span class="method-name">scenario_failed</span><span class="method-args">(story_title, scenario_name, err)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000434-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000434-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 79</span>
79:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_failed</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">err</span>)
80:             <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">backtrace_tweaker</span>.<span class="ruby-identifier">tweak_backtrace</span>(<span class="ruby-identifier">err</span>)
81:             <span class="ruby-ivar">@failed_scenarios</span> <span class="ruby-operator">&lt;&lt;</span> [<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">err</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@scenario_already_failed</span>
82:             <span class="ruby-ivar">@scenario_already_failed</span> = <span class="ruby-keyword kw">true</span>
83:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">true</span>
84:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">true</span>
85:             <span class="ruby-identifier">scenario_ended</span>
86:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000435" class="method-detail">
        <a name="M000435"></a>

        <div class="method-heading">
          <a href="#M000435" class="method-signature">
          <span class="method-name">scenario_pending</span><span class="method-args">(story_title, scenario_name, msg)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000435-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000435-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 88</span>
88:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_pending</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">msg</span>)
89:             <span class="ruby-ivar">@pending_scenario_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@scenario_already_failed</span>
90:             <span class="ruby-ivar">@scenario_pending</span> = <span class="ruby-keyword kw">true</span>
91:             <span class="ruby-ivar">@scenario_already_failed</span> = <span class="ruby-keyword kw">true</span>
92:             <span class="ruby-identifier">scenario_ended</span>
93:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000432" class="method-detail">
        <a name="M000432"></a>

        <div class="method-heading">
          <a href="#M000432" class="method-signature">
          <span class="method-name">scenario_started</span><span class="method-args">(story_title, scenario_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000432-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000432-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 64</span>
64:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_started</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>)
65:             <span class="ruby-ivar">@current_scenario_name</span> = <span class="ruby-identifier">scenario_name</span>
66:             <span class="ruby-ivar">@scenario_already_failed</span> = <span class="ruby-keyword kw">false</span>
67:             <span class="ruby-ivar">@scenario_head_text</span> = <span class="ruby-node">&quot;\n\n  Scenario: #{scenario_name}&quot;</span>
68:             <span class="ruby-ivar">@scenario_body_text</span> = <span class="ruby-value str">&quot;&quot;</span>
69:             <span class="ruby-ivar">@scenario_ok</span> = <span class="ruby-keyword kw">true</span>
70:             <span class="ruby-ivar">@scenario_pending</span> = <span class="ruby-keyword kw">false</span>
71:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">false</span>
72:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000433" class="method-detail">
        <a name="M000433"></a>

        <div class="method-heading">
          <a href="#M000433" class="method-signature">
          <span class="method-name">scenario_succeeded</span><span class="method-args">(story_title, scenario_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000433-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000433-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 74</span>
74:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_succeeded</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>)
75:             <span class="ruby-ivar">@successful_scenario_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
76:             <span class="ruby-identifier">scenario_ended</span>
77:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000441" class="method-detail">
        <a name="M000441"></a>

        <div class="method-heading">
          <a href="#M000441" class="method-signature">
          <span class="method-name">step_failed</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000441-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000441-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 149</span>
149:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_failed</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
150:             <span class="ruby-identifier">found_step</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-ivar">@scenario_pending</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
151:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@scenario_pending</span>
152:               <span class="ruby-ivar">@scenario_body_text</span> <span class="ruby-operator">+=</span>  <span class="ruby-identifier">yellow</span>(<span class="ruby-value str">&quot; (SKIPPED)&quot;</span>)
153:             <span class="ruby-keyword kw">else</span>
154:               <span class="ruby-ivar">@scenario_body_text</span> <span class="ruby-operator">+=</span>  <span class="ruby-identifier">red</span>(<span class="ruby-ivar">@scenario_ok</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot; (FAILED)&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot; (SKIPPED)&quot;</span>)
155:             <span class="ruby-keyword kw">end</span>
156:             <span class="ruby-ivar">@scenario_ok</span> = <span class="ruby-keyword kw">false</span>
157:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000440" class="method-detail">
        <a name="M000440"></a>

        <div class="method-heading">
          <a href="#M000440" class="method-signature">
          <span class="method-name">step_pending</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000440-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000440-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 141</span>
141:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_pending</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
142:             <span class="ruby-identifier">found_step</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
143:             <span class="ruby-ivar">@pending_steps</span> <span class="ruby-operator">&lt;&lt;</span> [<span class="ruby-ivar">@current_story_title</span>, <span class="ruby-ivar">@current_scenario_name</span>, <span class="ruby-identifier">description</span>]
144:             <span class="ruby-ivar">@scenario_body_text</span> <span class="ruby-operator">+=</span>  <span class="ruby-identifier">yellow</span>(<span class="ruby-value str">&quot; (PENDING)&quot;</span>)
145:             <span class="ruby-ivar">@scenario_pending</span> = <span class="ruby-keyword kw">true</span>
146:             <span class="ruby-ivar">@scenario_ok</span> = <span class="ruby-keyword kw">false</span>
147:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000439" class="method-detail">
        <a name="M000439"></a>

        <div class="method-heading">
          <a href="#M000439" class="method-signature">
          <span class="method-name">step_succeeded</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000439-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000439-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 137</span>
137:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_succeeded</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
138:             <span class="ruby-identifier">found_step</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
139:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000438" class="method-detail">
        <a name="M000438"></a>

        <div class="method-heading">
          <a href="#M000438" class="method-signature">
          <span class="method-name">step_upcoming</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000438-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000438-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 134</span>
134:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_upcoming</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
135:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000431" class="method-detail">
        <a name="M000431"></a>

        <div class="method-heading">
          <a href="#M000431" class="method-signature">
          <span class="method-name">story_ended</span><span class="method-args">(title, narrative)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000431-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000431-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 50</span>
50:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">story_ended</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">narrative</span>)
51:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@story_failed</span>
52:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">red</span>(<span class="ruby-ivar">@story_head_text</span>)
53:             <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@pre_story_successful_count</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@successful_scenario_count</span> <span class="ruby-operator">&amp;&amp;</span> 
54:                   <span class="ruby-ivar">@pending_scenario_count</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-ivar">@pre_story_pending_count</span>
55:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">yellow</span>(<span class="ruby-ivar">@story_head_text</span>)
56:             <span class="ruby-keyword kw">else</span>              
57:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">green</span>(<span class="ruby-ivar">@story_head_text</span>)
58:             <span class="ruby-keyword kw">end</span>
59:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-ivar">@story_body_text</span>
60:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span>
61:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span>
62:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000430" class="method-detail">
        <a name="M000430"></a>

        <div class="method-heading">
          <a href="#M000430" class="method-signature">
          <span class="method-name">story_started</span><span class="method-args">(title, narrative)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000430-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000430-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb, line 35</span>
35:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">story_started</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">narrative</span>)
36:             <span class="ruby-ivar">@pre_story_pending_count</span> = <span class="ruby-ivar">@pending_scenario_count</span>
37:             <span class="ruby-ivar">@pre_story_successful_count</span> = <span class="ruby-ivar">@successful_scenario_count</span>
38:             
39:             <span class="ruby-ivar">@current_story_title</span> = <span class="ruby-identifier">title</span>
40:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">false</span>
41:             <span class="ruby-ivar">@story_body_text</span> = <span class="ruby-value str">&quot;&quot;</span>
42:             <span class="ruby-ivar">@story_head_text</span> = <span class="ruby-node">&quot;Story: #{title}\n\n&quot;</span>
43: 
44:             <span class="ruby-identifier">narrative</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
45:               <span class="ruby-ivar">@story_head_text</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;  &quot;</span>
46:               <span class="ruby-ivar">@story_head_text</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>
47:             <span class="ruby-keyword kw">end</span>
48:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>